package com.common.app.widget.sysno;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import com.common.app.R;

public class SysSimpleOverlayAdapter extends BaseSysOverlayPageAdapter {
    private LayoutInflater mInflater;
    private View mCurrentView;

    public SysSimpleOverlayAdapter(Context context) {
        super(context);
        mInflater = LayoutInflater.from(context);
    }

    @Override
    protected View itemView() {
        return mInflater.inflate(R.layout.item_sys_not_viewpager, null);
    }

    @Override
    public void setPrimaryItem(@NonNull ViewGroup container, int position, @NonNull Object object) {
        mCurrentView = (View)object;
    }

    public View getPrimaryItem() {
        return mCurrentView;
    }
}
